<html><head><title>Test Page</title></head>
<body>
<h2>Hello, world!</h2>
<script type="text/javascript">
function show_alert()
{
alert("Hello! I am an alert box!");
}
</script>

<input type="button" onclick="show_alert()" value="Show alert box" />
</body></html>